<template>
    <div class="sitehome">
        <div class="sitehome-wrap">
            <div class="header">
                <h1><a class="header-text">林崖的个人网站</a></h1>
                <p>Lin Ya's Personal Website</p>
            </div>
            <hr >
            <div class="sitehome-nav">
                <site-nav
                :listArr="navArr"></site-nav>
            </div>
            <hr>
            <div class="sitehome-footer">
                <slot name="footer">
                    <a href="###" class="sitehome-link">Concat</a>
                </slot>
            </div>
        </div>
    </div>

</template>

<script>
    import SiteNav from 'base/nav';
    import {navArr} from "./config";

    export default {
        name: 'SiteHome',
        components: {
            SiteNav
        },
        data(){
            return {
                navArr
            };
        }
    }



</script>



<style  lang="less">
@import '~assets/less/mixins';
.nav-item{
    line-height: 1.5;
    .sitehome-link();
    background-color: rgba(0, 0, 0, .5);
    margin-top: 10px;
    padding-left: 10px;


    .nav-link{
        display: inline-block;
        width: 100%;
        height: 100%;
        .sitehome-link();
    }
}

    .sitehome {
        .flex(center, column);
        background-color: rgba(0, 0, 0, .5);
        width: 400px;
        font-size: @font-base-size;
        color: @font-base-color;
        border-radius: .25rem;
        &-wrap{
            width: 80%;
            height: 100%;
            padding: 10% 10% 5% 10%;
            .header {
                margin-bottom: 20px;
                text-align: center;
                /*margin-top: -10%;*/
                h1 {
                    font-size: 22px;
                    margin-bottom:5px;
                }
            }
        }
        &-nav{
            margin-bottom: 5px;

        }
        &-footer{
            text-align: right;
            .sitehome-link{
                display: inline-block;
                margin-top: 10px;
                color: #ffffff;
                .sitehome-link();
            }

        }

    }

    .site-home{
        .home-wrap{
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%,-50%);
            -moz-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
            -o-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
            width: 400px;
            -webkit-border-radius: 1.5rem;
            -moz-border-radius: 1.5rem;
            border-radius: .25rem;
            background-color: rgba(0,0,0,.5);
            font-size: 16px;
            color: #fff;

            display: flex;

            flex-direction: column ;
            justify-content: space-around;

            a{
                color: #fff;
            }
            hr{
                width: 75%;
                margin-left: 12.5%;
            }
            .header{
                font-size: 22px;
                font-weight: bold;
                flex-grow: 0.20;
                margin: 10px 0;
                span{
                    display: inline-block;
                    margin-top: 10px;
                    font-size: 16px;
                    font-weight: 400;
                }
                .header-text:hover{
                    text-decoration:underline;
                }

            }
            .home-menu{
                flex-grow: 1;
                padding: 30px 0;
                
                li{
                    text-align: center;
                    width: 100%;
                }
                .menu-item{
                    display: inline-block;
                    width: 75%;
                    margin: 10px auto;
                    text-align: left;
                    padding: 5px 10px;
                    -webkit-border-radius: 10px;
                    -moz-border-radius: 10px;
                    border-radius: 10px;
                    color: #fff;
                    background-color: #000;
                    opacity: .5;
                }

            }
            .home-footer{
                height: 40px;
                line-height: 40px;
                flex-grow: 0.25;



            }
        }

        .backgroundImg{
            position: absolute;
            left: 0;
            top: 0;
            z-index: -100;
            width: 100%;
            height: 100%;

        }
    }


</style>